.automated-content {
    .page-header {
        h1 {
            font-size: 24px;
            font-weight: 600;
            color: #262626;
            margin: 0;
            line-height: 1.4;

            .top-actions {
                float: right;

                .action-btn {
                    color: #999999 !important;
                    font-size: 15px;
                    border: none;
                }
            }
        }
    }

    .automated-wrapper {
        display: flex;
        gap: 24px;
        height: 100%;
        width: 100%;

        // 左侧模板列表
        .template-list {
            width: 45%;
            background-color: #fff;
            border-radius: 8px;
            padding: 20px;
            border: 1px solid #e8e8e8;

            .search-bar {
                display: flex;
                align-items: center;
                background-color: #f5f5f5;
                border-radius: 6px;
                padding: 8px 12px;
                margin-bottom: 20px;

                .anticon {
                    color: #999;
                    margin-right: 8px;
                }

                input {
                    border: none;
                    background: none;
                    outline: none;
                    flex: 1;
                    font-size: 14px;

                    &::placeholder {
                        color: #999;
                    }
                }
            }

            .template-section {
                margin-bottom: 24px;

                .section-header {
                    font-weight: 600;
                    height: 50px;
                    color: #262626;

                    .add-icon {
                        color: #009999;
                        cursor: pointer;
                        font-size: 20px;
                        margin-right: 8px;

                        &:hover {
                            color: #009999;
                        }
                    }

                    .select-btn {
                        width: 150px;
                        float: right;
                        z-index: 1;
                        margin-right: 10px;
                    }
                }

                .template-items {
                    .template-item {

                        padding: 12px;
                        border-radius: 6px;
                        cursor: pointer;
                        transition: all 0.3s;
                        margin-bottom: 8px;
                        font-size: 15px;

                        &:hover {
                            background-color: #f5f5f5;
                        }

                        &.selected {
                            background-color: #e0dbe3;
                        }

                        .template-info {
                            display: flex;
                            justify-content: space-between;
                            align-items: center;

                            .template-name {
                                font-weight: 500;
                                color: #262626;
                                margin-bottom: 4px;
                            }

                            .template-date {
                                font-size: 15px;
                                color: #999;
                            }

                            .add-icon {
                                color: #009999;
                                cursor: pointer;
                                font-size: 15px;
                                margin-right: 8px;

                                &:hover {
                                    color: #009999;
                                }
                            }

                            .edit-btn {
                                cursor: pointer;
                                color: #009999;
                                font-size: 14px;
                                transition: color 0.3s;

                                &:hover {
                                    color: #006666;
                                }
                            }
                        }
                    }
                }
            }
        }

        // 编辑弹窗样式
        .edit-modal {
            .ant-modal-content {
                border-radius: 8px;
                border: 1px solid #e8e8e8;
            }

            .ant-modal-header {
                border-bottom: 1px solid #f0f0f0;

                .ant-modal-title {
                    font-size: 18px;
                    font-weight: 600;
                    color: #262626;
                }
            }

            .ant-modal-close {
                color: #999;
                font-size: 16px;
            }

            .edit-content {
                padding: 24px;

                .edit-input-area {
                    background-color: #fff;
                    border-radius: 6px;
                    padding: 16px;
                    min-height: 120px;
                }
            }

            .edit-footer {
                display: flex;
                justify-content: flex-end;
                gap: 12px;
                padding: 16px 24px;
                border-top: 1px solid #f0f0f0;

                .ant-btn {
                    border-radius: 6px;
                    padding: 8px 16px;
                    font-weight: 500;

                    &.ant-btn-primary {
                        background-color: var(--btnBG);
                        border-color: var(--btnBG);

                        &:hover {
                            background-color: var(--btnBG);
                            border-color: var(--btnBG);
                        }
                    }
                }
            }
        }

        // 右侧配置区域
        .template-config {
            width: 55%;
            background-color: #fff;
            border-radius: 8px;
            padding: 24px;
            border: 1px solid #e8e8e8;
            display: flex;
            flex-direction: column;


            .nav-controls {
                display: flex;
                width: 100%;
                align-items: center;
                justify-content: flex-end;
                border-bottom: 1px solid #f0f0f0;

                .nav-btn {
                    color: #999999 !important;
                    font-size: 15px;
                    border: none;
                }

                .nav-number {
                    margin-left: 8px;
                    font-weight: 600;
                    color: #262626;
                }
            }

            .measurement-config {
                margin-bottom: 24px;

                .config-section {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 16px;
                    padding: 12px;
                    background-color: #fafafa;
                    border-radius: 6px;

                    h3 {
                        margin: 0;
                        font-size: 20px;
                        font-weight: 600;
                        color: #262626;
                    }
                }

                .measurement-lists {
                    display: flex;
                    gap: 24px;

                    .detail-list,
                    .selection-list {
                        flex: 1;

                        .measurement-item {
                            padding: 8px 12px;
                            border-radius: 4px;
                            cursor: pointer;
                            transition: all 0.3s;
                            margin-bottom: 4px;
                            display: flex;
                            align-items: center;

                            &:hover {
                                background-color: #f5f5f5;
                            }

                            &.active {
                                background-color: #e0dbe3;
                                color: var(--btnBG);
                                font-weight: 500;
                            }

                            span {
                                margin-left: 8px;
                            }

                            // 自定义checkbox样式
                            .ant-checkbox-wrapper {
                                .ant-checkbox {
                                    .ant-checkbox-inner {
                                        border-color: #009999 !important;
                                    }
                                }

                                .ant-checkbox-checked {
                                    .ant-checkbox-inner {
                                        background-color: #009999 !important;
                                        border-color: #009999 !important;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            .input-fields {
                margin-bottom: 24px;

                .input-group {
                    margin-bottom: 16px;
                    display: flex;
                    align-items: center;

                    label {
                        display: block;
                        font-weight: 500;
                        color: #262626;
                        width: 200px;
                    }

                    .ant-input {
                        border-radius: 6px;
                        border: none;
                    }
                }
            }

            .save-section {
                margin-top: auto;
                display: flex;
                justify-content: flex-end;

                .save-btn {
                    background-color: var(--btnBG);
                    border-color: var(--btnBG);
                    border-radius: 6px;
                    padding: 8px 24px;
                    font-weight: 600;
                    color: #fff !important;

                    &:hover {
                        background-color: var(--btnBG);
                        border-color: var(--btnBG);
                    }
                }
            }
        }
    }

    // 编辑弹窗样式
    .edit-modal {
        .edit-content {
            .edit-form {
                .form-group {
                    margin-bottom: 20px;

                    label {
                        display: block;
                        margin-bottom: 8px;
                        font-weight: 500;
                        color: #262626;
                    }

                    .ant-input,
                    .ant-input-textarea {
                        width: 100%;
                    }
                }
            }
        }
    }

    // 错误弹窗样式
    .error-modal {
        .error-content {
            text-align: center;
            padding: 20px 0;

            .warning-icon {
                margin-bottom: 16px;

                .anticon {
                    font-size: 48px;
                    color: #faad14;
                }
            }

            .error-title {
                font-size: 18px;
                font-weight: 600;
                color: #262626;
                margin-bottom: 8px;
            }

            .error-message {
                font-size: 14px;
                color: #666666;
                line-height: 1.5;
            }
        }
    }

}

// 保存弹窗样式
.save-modal {
    .save-content {
        .operation-cell {
            display: flex;
            align-items: center;
            // justify-content: space-between;

            span {
                font-weight: 500;
                color: #262626;
            }

            .arrow-controls {
                display: flex;
                flex-direction: column;

                .arrow-icon {
                    font-size: 12px;
                    color: var(--btnBG);
                    cursor: pointer;
                    transition: color 0.3s;
                }
            }
        }

        .count-input,
        .frequency-input,
        .voltage-input {
            width: 80px;
            border-radius: 4px;
        }

        .select-input {
            width: 100px;
            border-radius: 4px;
            border: none !important;

            .ant-select-selector {
                border-radius: 4px !important;
                border: none !important;
                box-shadow: none !important;
            }

            .ant-select-arrow {
                display: none !important;
            }

            .ant-select-clear {
                display: none !important;
            }
        }

        .reset-btn {
            background-color: #fff !important;
            border-color: var(--btnBG);
            border-radius: 4px;
            width: 80px;
            height: 40px;
            font-size: 12px;
            font-weight: 500;
            color: var(--btnBG);

            &:hover {
                background-color: #fff !important;
                border-color: var(--btnBG);
            }
        }
    }

    .footer-content {
        display: flex;
        justify-content: flex-end;
        padding: 16px 0;

        .finished-btn {
            background-color: var(--btnBG);
            border-color: var(--btnBG);
            border-radius: 6px;
            // padding: 8px 16px;  
            width: 200px;
            height: 50px;
            font-weight: 600;
            font-size: 16px;
            color: #fff !important;

            &:hover {
                background-color: var(--btnBG);
                border-color: var(--btnBG);
            }
        }
    }
}